package cn.bdqn.layui.mapper;

import cn.bdqn.layui.entity.vo.ProUserVo;
import cn.bdqn.layui.entity.ProductSuccess;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductSuccessMapper {
    int deleteByPrimaryKey(String code);

    int insert(ProductSuccess record);

    int insertSelective(ProductSuccess record);

    ProductSuccess selectByPrimaryKey(String code);

    int updateByPrimaryKeySelective(ProductSuccess record);

    int updateByPrimaryKey(ProductSuccess record);

    int countByProductUserId(@Param("proId") Integer proId, @Param("userId") Integer userId);

    ProUserVo findByCode(String code);

    List<ProductSuccess> selectExpireOrders();

    int expireOrder(@Param("code") String code);
}